go/types.Checker.error (method)

39 uses

	go/types (current package)
		assignments.go#L60: 			check.error(x, code, msg)
		call.go#L606: 			check.error(e, _InvalidDeclCycle, "illegal cycle in method declaration")
		decl.go#L551: 		check.error(atPos(tdecl.Assign), _BadDecl, "generic type cannot be alias")
		decl.go#L594: 		check.error(tdecl.Type, _MisplacedTypeParam, "cannot use a type parameter as RHS in type declaration")
		decl.go#L638: 				check.error(f.Type, _MisplacedTypeParam, "cannot use a type parameter as constraint")
		errors.go#L214: func (check *Checker) error(at positioner, code errorCode, msg string) {
		errors.go#L219: 	check.error(at, code, check.sprintf(format, args...))
		expr.go#L1262: 		check.error(e, _BadDotDotDotSyntax, "invalid use of '...'")
		expr.go#L1349: 			check.error(e, _UntypedLit, "missing type in composite literal")
		expr.go#L1358: 				check.error(e, _InvalidDeclCycle, "illegal cycle in type declaration")
		expr.go#L1371: 						check.error(e, _MixedStructLit, "mixture of field:value and value elements in struct literal")
		expr.go#L1402: 						check.error(kv, _MixedStructLit, "mixture of field:value and value elements in struct literal")
		expr.go#L1407: 						check.error(x, _InvalidStructLit, "too many values in struct literal")
		expr.go#L1422: 					check.error(inNode(e, e.Rbrace), _InvalidStructLit, "too few values in struct literal")
		expr.go#L1432: 				check.error(e, _InvalidTypeCycle, "illegal cycle in type declaration")
		expr.go#L1459: 				check.error(e, _InvalidTypeCycle, "illegal cycle in type declaration")
		expr.go#L1468: 				check.error(e, _InvalidTypeCycle, "illegal cycle in type declaration")
		expr.go#L1475: 					check.error(e, _MissingLitKey, "missing key in map literal")
		expr.go#L1571: 			check.error(e, _BadTypeKeyword, "use of .(type) outside type switch")
		resolver.go#L396: 						check.error(d.decl.Recv, _BadRecv, "method is missing receiver")
		signature.go#L199: 			check.error(recvList[len(recvList)-1], _InvalidRecv, "method must have exactly one receiver")
		stmt.go#L53: 		check.error(atPos(body.Rbrace), _MissingReturn, "missing return")
		stmt.go#L265: 					check.error(atPos(vt.pos), _DuplicateCase, "\tprevious case") // secondary error, \t indented
		stmt.go#L309: 				check.error(other, _DuplicateCase, "\tprevious case") // secondary error, \t indented
		stmt.go#L536: 				check.error(s, _MisplacedBreak, "break not in for, switch, or select statement")
		stmt.go#L540: 				check.error(s, _MisplacedContinue, "continue not in for statement")
		stmt.go#L549: 				check.error(s, code, msg)
		stmt.go#L569: 			check.error(s.Cond, _InvalidCond, "non-boolean condition in if statement")
		stmt.go#L785: 				check.error(clause.Comm, _InvalidSelectCase, "select case must be send or receive (possibly with assignment)")
		stmt.go#L807: 				check.error(s.Cond, _InvalidCond, "non-boolean condition in for statement")
		stmt.go#L913: 				check.error(inNode(s, s.TokPos), _NoNewVar, "no new variables on left side of :=")
		struct.go#L154: 						check.error(embeddedPos, _InvalidPtrEmbed, "embedded field type cannot be unsafe.Pointer")
		struct.go#L157: 					check.error(embeddedPos, _InvalidPtrEmbed, "embedded field type cannot be a pointer")
		struct.go#L163: 						check.error(embeddedPos, _MisplacedTypeParam, "embedded field type cannot be a (pointer to a) type parameter")
		struct.go#L167: 						check.error(embeddedPos, _InvalidPtrEmbed, "embedded field type cannot be a pointer to an interface")
		typexpr.go#L39: 				check.error(e, _InvalidBlank, "cannot use _ as value or type")
		typexpr.go#L307: 		check.error(e, _InvalidDotDotDot, "invalid use of '...'")
		union.go#L120: 					check.error(tlist[i], _InvalidUnion, "cannot use comparable in union")
		union.go#L152: 		check.error(x, _MisplacedTypeParam, "cannot embed a type parameter")